#include "string_functions.h"

int get_part(char *input, char *output, int part) {
	const char delimiters[] = " ,\n\t";
	char *token, *cp;
	int i;
	
	cp = strdup(input);
	token = strtok(cp, delimiters);
	for(i=0; i<part; i++) {
		token = strtok(NULL, delimiters);
	}
	
	strcpy(output, token);
	return 1;
}
